// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_REPAIR_ORDER
// * CreateDate    : 2014-06-05 18:30:34
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:34
// * LastChanger   : 2014-06-05 18:30:34
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class RepRepairOrderEntity : EntityBase
    {
        public RepRepairOrderTable TableSchema
        {
            get
            {
                return RepRepairOrderTable.Current;
            }
		}
		
		public RepRepairOrderEntity()
        {

        }
		
		public RepRepairOrderEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RepOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_ID"]));
			this.RepApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["REP_APPLICATION_ID"]));
			this.RepOrderCode = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_CODE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
        }
		
		public RepRepairOrderEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RepOrderId = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_ID"]));
			this.RepApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["REP_APPLICATION_ID"]));
			this.RepOrderCode = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_CODE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepRepairOrderTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string RepOrderId
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_REP_ORDER_ID)); }
            set { SetData(RepRepairOrderTable.C_REP_ORDER_ID, value); }
        }
		
        [DataMember]
        public string RepApplicationId
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_REP_APPLICATION_ID)); }
            set { SetData(RepRepairOrderTable.C_REP_APPLICATION_ID, value); }
        }
		
        [DataMember]
        public string RepOrderCode
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_REP_ORDER_CODE)); }
            set { SetData(RepRepairOrderTable.C_REP_ORDER_CODE, value); }
        }
		
        [DataMember]
        public string Status
        {
            get { return Convert.ToString(GetData(RepRepairOrderTable.C_STATUS)); }
            set { SetData(RepRepairOrderTable.C_STATUS, value); }
        }
		
        [DataMember]
        public DateTime CreateDate
        {
            get { return Convert.ToDateTime(GetData(RepRepairOrderTable.C_CREATE_DATE)); }
            set { SetData(RepRepairOrderTable.C_CREATE_DATE, value); }
        }
		
		#endregion
	}
	
	
}	

